<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var modifierRE = /\.[^.]+/g; //
  console.log('data.object.info.age'.match(modifierRE));
</script>
</body>
</html>